﻿<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="发运交接单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-8 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                        ng-disabled="!btnPermission.handoverBillAdd"
                        translate translate-attr-title="{{!btnPermission.handoverBillAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="addThreeDayPlay('batch')"
                        ng-disabled="!btnPermission.handoverBillThreeDayPlan"
                        translate translate-attr-title="{{!btnPermission.handoverBillThreeDayPlan?'无权限执行此操作':''}}">三日计划</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint()" translate>批量打印</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchSendConfirm()" translate>批量确认发货</button>

                    <button class="btn btn-operate m-r-sm" ng-click="batchPrintJckBoxup()"
                        ng-disabled="!btnPermission.handoverBillEncasementJck"
                        translate translate-attr-title="{{!btnPermission.handoverBillEncasementJck?'无权限执行此操作':''}}">批量打印进出口装箱清单</button>

                    <button class="btn btn-operate m-r-sm" ng-click="auditData()"
                        ng-disabled="!btnPermission.handoverBillAudit"
                        translate translate-attr-title="{{!btnPermission.handoverBillAudit?'无权限执行此操作':''}}">批量审核</button>
                    <button class="btn btn-operate m-r-sm" ng-click="autoAddData()"
                        ng-disabled="!btnPermission.handoverBillAddAuto"
                        translate translate-attr-title="{{!btnPermission.handoverBillAddAuto?'无权限执行此操作':''}}">自动创建新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchRelease()" translate>一键下达</button>
                    <button class="btn btn-operate m-r-sm" ng-click="wmsSyncByDeliveryBill()" translate ng-if="btnPermission.handoverBillWmsSync">WMS箱单推送</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importWmsSync()" translate ng-if="btnPermission.handoverBillWmsImport">导入WMS数据</button>
                </div>
                <div class="search-bar wrapper-none col-xs-4">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate
                            translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.handoverBillExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出全部</span>
                                </li>
                                <li yb-download download-url="exportParam.allNewUrl" download-param="condition" check-callback="outPut()">
                                    <i class="yb-icon ico-export-o"></i> <span translate>按类型导出</span>
                                </li>
                                <li yb-download download-url="exportParam.exportBoxUp"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出装箱清单</span>
                                </li>
                                <li yb-download download-url="exportParam.exportBoxUpDetailBatch"
                                    download-param="exportParam.sectionParam" download-key="billIds">
                                    <i class="yb-icon ico-export-o"></i> <span translate>导出装箱清单明细</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate
                            translate-attr-placeholder="单号或发货通知单号" ng-model="condition.billNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>单据类型</span>：</label>
                        <select class="form-control" ng-model="condition.billType">
                            <option value="" translate>请选择</option>
                            <option value='XGFT' translate>发货通知单</option>
                            <option value='XGSC' translate>三包出库单</option>
                            <option value='XGQD' translate>区域调拨单</option>
                            <option value='XGFC' translate>其它出库单</option>
                            <option value='XSCK' translate>销售赠送出库</option>
                            <option value='XGZK' translate>赠送出库</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>单号</span>：</label>
                        <textarea ng-model="condition.billNos" class="form-control" translate
                            translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>装箱单号</span>：</label>
                        <input type="text" name="boxupNo" ng-model="condition.boxupNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户名称</span>：</label>
                        <input type="text" name="dealerOrgName" ng-model="condition.dealerOrgName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>收货人</span>：</label>
                        <input type="text" name="receiverName" ng-model="condition.receiverName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调度员</span>：</label>
                        <input type="text" name="dispatcherName" ng-model="condition.dispatcherName"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" name="createName" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>承运商</span>：</label>
                        <input type="text" name="carrierOrgName" ng-model="condition.carrierOrgName"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>发出仓库</span>：</label>
                        <!-- <input type="text" name="outLocation" ng-model="condition.outLocation" class="form-control"> -->

                        <textarea ng-model="condition.outLocations" class="form-control" translate   ng-blur="handleBlur($event)"
                            translate-attr-placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
					<div class="form-group clearfix">
                        <label class="control-label"><span translate>采购合同号</span>：</label>
                        <input type="text" name="purchaseContractNo" ng-model="condition.purchaseContractNo" class="form-control">
                    </div>

                    <div class="form-group clearfix" ng-if="curOrg.companyType === '2'">
                        <label class="control-label"><span translate>源运单号</span>：</label>
                        <input type="text" name="sourceDeliveryNo" ng-model="condition.sourceDeliveryNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件号</span>：</label>
                        <input type="text" name="materialsNo" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购级别</span>：</label>
                        <select class="form-control" ng-model="condition.purchaseLevelId">
                            <option value="" translate>请选择</option>
                            <option value=0 translate>补库</option>
                            <option value=1 translate>紧急</option>
                            <option value=3 translate>整改</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>发运方式</span>：</label>
                        <input type="text" name="shippingMethod" ng-model="condition.shippingMethod"
                            class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>物流状态</span>：</label>
                        <select class="form-control" ng-model="condition.deliveryStatus"
                            ng-options="item.code as item.name for item in deliveryStatues">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>出库状态</span>：</label>
                        <select class="form-control" ng-model="condition.outStatus">
                            <option value="" translate>请选择</option>
                            <option value=0 translate>未出库</option>
                            <option value=1 translate>部分出库</option>
                            <option value=2 translate>已出库</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否超期</span>：</label>
                        <select class="form-control" ng-model="condition.isTimeOut">
                            <option value="" translate>请选择</option>
                            <option value= 1 translate>是</option>
                            <option value=-1 translate>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否异常</span>：</label>
                        <select class="form-control" ng-model="condition.isAbnormal">
                            <option value="" translate>请选择</option>
                            <option value=1 translate>是</option>
                            <option value=0 translate>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>发货时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.deliveryDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(2)"
                            is-open="datePickerFlag[2]" close-text="关闭"
                            ng-change="checkDate(condition, 'deliveryDateStart', 'deliveryDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.deliveryDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(3)"
                            is-open="datePickerFlag[3]" close-text="关闭"
                            ng-change="checkDate(condition, 'deliveryDateStart', 'deliveryDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>到货时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.realArrivalDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateStart = !showDateStart"
                            ng-change="checkDate(condition, 'realArrivalDateStart', 'realArrivalDateEnd')"
                            is-open="showDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.realArrivalDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateEnd = !showDateEnd"
                            ng-change="checkDate(condition, 'realArrivalDateStart', 'realArrivalDateEnd')"
                            is-open="showDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>签收时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.receiveDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(4)"
                            is-open="datePickerFlag[4]" close-text="关闭"
                            ng-change="checkDate(condition, 'receiveDateStart', 'receiveDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.receiveDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(5)"
                            is-open="datePickerFlag[5]" close-text="关闭"
                            ng-change="checkDate(condition, 'receiveDateStart', 'receiveDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否到货</span>：</label>
                        <select class="form-control" ng-model="condition.arrivalFlag">
                            <option value="" translate>请选择</option>
                            <option value=0 translate>否</option>
                            <option value=1 translate>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>物流更新状态</span>：</label>
                        <select class="form-control" ng-model="condition.recordFlag">
                            <option value="" translate>请选择</option>
                            <option value=0 translate>否</option>
                            <option value=1 translate>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>服务信息单号</span>：</label>
                        <input type="text" ng-model="condition.serviceNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.auditStatus">
                            <option value="" translate>请选择</option>
                            <option value=1 translate>待审核</option>
                            <option value=2 translate>审核通过</option>
                            <option value=3 translate>审核拒绝</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>京东物流单号</span>：</label>
                        <input type="text" ng-model="condition.wayBillId" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否已下达</span>：</label>
                        <select class="form-control" ng-model="condition.issuedStatus">
                            <option value="" translate>请选择</option>
                            <option value=1 translate>是</option>
                            <option value=0 translate>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>确认发运时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.commitTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="commitTimeStartShow=!commitTimeStartShow"
                            is-open="commitTimeStartShow" close-text="关闭"
                            ng-change="checkDate(condition, 'commitTimeStart', 'commitTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.commitTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="commitTimeEndShow=!commitTimeEndShow"
                            is-open="commitTimeEndShow" close-text="关闭"
                            ng-change="checkDate(condition, 'commitTimeStart', 'commitTimeEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix"  ng-if="isWJ" >
                        <label class="control-label" ><span translate   >未上传签收单</span>:</label>
                        <toggle   ng-model="condition.warnUnuploadFlagParam" yb-click="notUploadedReceive()"></toggle>
                    </div>
                    <div class="form-group clearfix" ng-if="isWJ" >
                        <label class="control-label" ><span  translate   >未收货</span>:</label>
                        <toggle  ng-model="condition.warnUnsignFlagParam" yb-click="notReceive()"></toggle>
                    </div>
                    
                    <!-- <div class="form-group clearfix" >
                        <label class="control-label" >结算方式：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dictionary-selector ng-model="condition.settlementDesc" sel-key="JSFS">
                                <input type="text" name="settleType" class="form-control light-bg"
                                    ng-model="condition.settlementDesc" placeholder="请选择" readonly
                                    yb-focus>
                            </div>
                        </div>
                    </div> -->
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>结算方式</span>：</label>
                        <select class="form-control" ng-model="condition.settlementDesc">
                            <option value="" translate>请选择</option>
                            <option value="寄付" translate>寄付</option>
                            <option value="到付" translate>到付</option>
                            <option value="月结" translate>月结</option>
                            <option value="年结" translate>年结</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right" style="top:13px">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectForAll()">
                                        </div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeftWidth">
                        <table class="table-fixed border-none">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item)"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-if="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">

                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="!btnPermission.handoverBillEdit || item.deliveryStatus >= 1 || curOrgId != item.orgId"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delApply(item)"
                                                ng-disabled="item.deliveryStatus >= 1 || !btnPermission.handoverBillRemove"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillRemove?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="auditBill(item)"
                                                ng-disabled="item.auditStatus != 1 || !btnPermission.handoverBillAudit"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="makeAbnormal(item.id, item.billNo, item.orgId)"
                                                ng-disabled="item.deliveryStatus =='0' || item.sendStatus == 2 || !btnPermission.handoverBillAbnormalIn"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillAbnormalIn?'无权限执行此操作':''}}">创建入库单</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-if="btnPermission.handoverBillTJSC"
                                                ng-click="sendConfirm(item.billNo)"
                                                ng-disabled="(item.outStatus!==2&&item.outStatus!==3)||!btnPermission.handoverBillSend || item.deliveryStatus>=1 || curOrgId != item.orgId"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillSend?'无权限执行此操作':''}}">确认发货</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-if="!btnPermission.handoverBillTJSC"
                                                ng-click="sendConfirm(item.billNo)"
                                                ng-disabled="!btnPermission.handoverBillSend || item.deliveryStatus>=1"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillSend?'无权限执行此操作':''}}">确认发货</button>

                                            <button class="btn btn-operate m-r-xs" ng-click="cancelSend(item.billNo)"
                                                ng-disabled="!btnPermission.handoverBillCancelSend || item.deliveryStatus!== '1' || item.billType=='XGQD'"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillCancelSend?'无权限执行此操作':''}}">取消发货</button>

                                            <button class="btn btn-operate m-r-xs" ng-click="delivery(item)"
                                                ng-disabled="item.deliveryStatus!== '1' || !btnPermission.handoverBillReceive"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillReceive?'无权限执行此操作':''}}">收货</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="syncJd(item)"
                                                ng-disabled="item.syncJdStatus == 1 || item.carrierOrgName !=='京东物流' || !btnPermission.handoverBillSyncJd"
                                                translate
                                                translate-attr-title="{{!btnPermission.handoverBillSyncJd?'无权限执行此操作':''}}">下发京东</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.handoverBillPrint || (isJCH&&item.auditStatus!=2)" translate
                                                translate-attr-title="{{!btnPermission.handoverBillPrint?'无权限执行此操作':''}}">打印</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="barcodePrint(item)"
                                                ng-disabled="!btnPermission.handoverBillBarcodeBox" translate
                                                translate-attr-title="{{!btnPermission.handoverBillBarcodeBox?'无权限执行此操作':''}}">打印装箱二维码</button>

                                            <button class="btn btn-operate m-r-xs" ng-if="isWJ&&item.dealerOrgName!='徐工进出口'" ng-click="printEncasementD(item)"
                                                ng-disabled="!btnPermission.handoverBillPrintEncasementD" translate
                                                translate-attr-title="{{!btnPermission.handoverBillPrintEncasementD?'无权限执行此操作':''}}">打印装箱清单明细</button>

                                            <button class="btn btn-operate m-r-xs" ng-if="isWJ&&item.dealerOrgName!='徐工进出口'"
                                                yb-download download-url="exportParam.exportUrl4Detail" download-param="{billId: item.id}"
                                                ng-disabled="!btnPermission.handoverBillExportDetail" translate
                                                translate-attr-title="{{!btnPermission.handoverBillExportDetail?'无权限执行此操作':''}}">导出装箱清单明细</button>

                                            <button class="btn btn-operate m-r-xs" ng-click="printEncasement(item)" translate>打印装箱清单</button>


                                            <button class="btn btn-operate m-r-xs" ng-click="printEncasementJck(item)"
                                                ng-disabled="!btnPermission.handoverBillEncasementJck" translate
                                                translate-attr-title="{{!btnPermission.handoverBillEncasementJck?'无权限执行此操作':''}}">打印进出口装箱清单</button>

                                            <button class="btn btn-operate m-r-xs"
                                                yb-download download-url="exportParam.exportUrl4JckBatch" download-param="{billId: item.id}"
                                                ng-disabled="!btnPermission.handoverBillExportJckBatch" translate
                                                translate-attr-title="{{!btnPermission.handoverBillExportJckBatch?'无权限执行此操作':''}}">导出进出口装箱清单</button>

                                            <button type="button" class="btn btn-operate"
                                                yb-download download-url="exportBXParam.exportUrl4materialWithNoNcm" download-param="{billId: item.id}"
                                                translate  ng-disabled="!btnPermission.handoverBillExportBXBatch"   translate-attr-title="{{!btnPermission.handoverBillExportBXBatch?'无权限执行此操作':''}}"
                                                >
                                                导出巴西装箱清单
                                            </button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="importAttachZL(item)"
                                                translate
                                                ng-disabled="!btnPermission.handoverBillUploadPackList"   translate-attr-title="{{!btnPermission.handoverBillUploadPackList?'无权限执行此操作':''}}"
                                            >上传箱单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="printEncasementDl(item)">打印道路装箱清单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="importAttach4sch(item)" ng-if="isSCH">上传附件</button>

                                            <button class="btn btn-operate m-r-xs"
                                            ng-if="isDL || isZHL"
                                            yb-download download-url="exportBXParamDL.export4DlBxByBillId" download-param="{billId: item.id}"
                                            ng-disabled="!( item.dealerOrgName === '徐州徐工智联物流服务有限公司')" translate
                                            translate-attr-title="{{!btnPermission.handoverBillExportBXDLBatch?'无权限执行此操作':''}}">导出巴西装箱清单（道路）</button>
                                            
                                            <button class="btn btn-operate m-r-xs"
                                            ng-if="isWJ && (item.carrierOrgCode === '91320115MA20J0TU4K'||item.carrierOrgCode ==='91320300690776470P')"
                                            ng-click="syncWTErp(item.billNo,item.carrierOrgCode)"
                                            ng-disabled=" item.deliveryStatus ==='0' || item.syncWantaiErpFlag === 1 " translate
                                            translate-attr-title="{{!btnPermission.handoverBillWTERPSync?'无权限执行此操作':''}}" >同步承运商ERP</button>

                                            <button class="btn btn-operate m-r-xs"
                                            ng-if="isWJ && (item.carrierOrgCode === '91320115MA20J0TU4K'||item.carrierOrgCode ==='91320300690776470P')"
                                            ng-click="unsyncWTErp(item.billNo,item.carrierOrgCode)"
                                            ng-disabled=" item.deliveryStatus !=='0' || item.syncWantaiErpFlag === 0 || item.syncWantaiErpFlag === 2 " translate
                                            translate-attr-title="{{!btnPermission.handoverBillWTERPUnsync?'无权限执行此操作':''}}" >撤销同步承运商ERP</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">

                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-switch="itemCol.type">
                                            <span ng-switch-when="attach4sch" ng-if="!!item[itemCol.dataField]">
                                                查看附件
                                            </span>
                                            <span ng-switch-default>
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </a>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll()"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="stepList.curStep == 0">
                <div class="pos-a-full" style="right: 50%;top: 35px;">
                    <div class="row wrapper-y-sm">
                        <div class="search-bar wrapper-none col-xs-3">
                            <select class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.billType"
                                ng-if="!tabFlag.isThreeDayPlan"
                                ng-options="item.code as (item.name| translate) for item in billTypeList"
                                ng-change="changeBillType()">
                            </select>
                            <select class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.billType"
                                ng-if="tabFlag.isThreeDayPlan"
                                ng-options="item.code as (item.name| translate) for item in threeDayBillTypeList"
                                ng-change="changeBillType()">
                            </select>
                        </div>
                        <div class="search-bar wrapper-none col-xs-3 m-l-xs" style="width:26%">
                            <select ng-if="(orderCondition.billType=='XGFT'||orderCondition.billType=='XGSC')&&!tabFlag.isThreeDayPlan"
                                class="form-control txt-search no-pic p-t-xs" ng-model="orderCondition.warehouseCode"
                                ng-options="item.code as (item.name| translate) for item in warehouseList"
                                ng-change="changeWarehouse()">
                            </select>
                            <input type="text" class="form-control date-picker txt-search no-pic"
                                ng-model="orderCondition.planDate" datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-if="tabFlag.isThreeDayPlan" ng-click="showCreateDateEnd = !showCreateDateEnd"
                                ng-change="changePlanDate()" is-open="showCreateDateEnd" close-text="关闭"
                                modal-size="small" readonly>
                        </div>
                        <div class="search-bar wrapper-none col-xs-5 pull-right">
                            <div class="input-group pull-right clearfix">
                                <input type="text" class="form-control txt-search" translate
                                    translate-attr-placeholder="{{orderCondition.billType=='XGSC'&&!tabFlag.isThreeDayPlan?'单据号/客户名称/服务人员/服务网点/创建人':'单据号/客户名称'}}"
                                    ng-style="{width:orderCondition.billType=='XGSC'&&!tabFlag.isThreeDayPlan?'340px':'200px'}"
                                    ng-model="orderCondition.keWords">
                                <span class="input-group-addon cursor-pointer" ng-click="searchBill(1)" translate>搜索</span>
                            </div>
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right"
                        style="top:50px; bottom: 50px;">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.fixedWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center th-check border-l-none">
                                            <div yb-check-box yb-checked="orderMarkInfo.allChecked"
                                                yb-click="orderSelectAll()"></div>
                                        </th>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.fixedWidth"
                                                fixed-width="tbStyle.billFixedWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="addLeftTableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y" ng-show="orderDataList.length > 0">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.fixedWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td width="40" class="text-center border-l-none">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="orderSelectSingle(item)"></div>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="orderDataList.length > 0" ng-style="tbStyle.billFixedWidth">
                            <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderDataList track by $index"
                                        ng-class="{'row-selected': $index === orderMarkInfo.cueRow}"
                                        ng-click="selectRow($index)">
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="orderDataList.length === 0" translate>暂时没有数据</div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm clearfix">
                        <div yb-check-box class="m-t-xs m-r-sm" yb-checked="orderMarkInfo.allChecked" yb-check-name="全选"
                            yb-click="orderSelectAll()"></div>
                        <div yb-page-info ng-model="orderPageInfo" yb-refresh="searchBill()"></div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 50%; padding-left: 10px;top: 35px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form" translate>
                            已选单据
                        </div>
                    </div>
                    <div yb-table-fixed class="table-fixed-wrap" style="top:50px; bottom: 50px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th width="120" translate class="spill-dots">业务单号
                                        </th>
                                        <th width="120" translate class="spill-dots">客户名称
                                        </th>
                                        <th width="120" translate class="spill-dots">采购级别
                                        </th>
                                        <th width="120" translate class="spill-dots">收货地址
                                        </th>
                                        <th width="120" translate class="spill-dots">创建帐号
                                        </th>
                                        <th width="120" translate class="spill-dots">创建时间
                                        </th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">车型</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">车号</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">CRM单据号</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">服务人员</th>
                                        <th width="120" ng-if="orderCondition.billType=='XGSC'" translate
                                            class="spill-dots">服务网点</th>
                                        <th width="100" translate>操作</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="selectedList.length > 0">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in selectedList track by $index">
                                        <td width="120" class="spill-dots" title="{{item.deliveryNo}}">
                                            {{item.deliveryNo}}</td>
                                        <td width="120" class="spill-dots" title="{{item.purchaseOrgName}}">
                                            {{item.purchaseOrgName}}</td>
                                        <td width="120" class="spill-dots" title="{{item.purchaseLevel}}">
                                            {{item.purchaseLevel}}</td>
                                        <td width="120" class="spill-dots" title="{{item.address}}">{{item.address}}
                                        </td>
                                        <td width="120" class="spill-dots" title="{{item.createName}}">
                                            {{item.createName}}</td>
                                        <td width="120" class="spill-dots"
                                            title="{{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                            {{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>

                                        <td width="120" class="spill-dots" title="{{item.prodType}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.prodType}}</td>
                                        <td width="120" class="spill-dots" title="{{item.machineNumber}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.machineNumber}}</td>
                                        <td width="120" class="spill-dots" title="{{item.crmOrder}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.crmOrder}}</td>
                                        <td width="120" class="spill-dots" title="{{item.serviceName}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.serviceName}}</td>
                                        <td width="120" class="spill-dots" title="{{item.serviceSite}}"
                                            ng-if="orderCondition.billType=='XGSC'">{{item.serviceSite}}</td>
                                        <td width="100"><button class="btn btn-operate" ng-click="delSelected($index)" translate>删除</button></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="selectedList.length === 0" translate>暂时没有数据
                        </div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm text-right clearfix">
                        <button type="button" class="btn btn-primary" ng-disabled="selectedList.length==0"
                            ng-click="nextStep()" translate>下一步
                        </button>
                    </div>
                </div>
            </div>
            <div class="clearfix" ng-show="stepList.curStep == 1">
                <form name="orderForm" class="m-t-sm form-horizontal form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm" ng-if="!!detailInfo.deliveryReceiptVO.billNo">
                        <label class="col-xs-4 control-label max-w-100"><span translate>发运交接单号</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.deliveryReceiptVO.billNo}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>客户名称</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverFax" class="form-control" maxlength="20"
                                ng-click="selectDealer()" ng-model="detailInfo.deliveryReceiptVO.dealerOrgName"
                                placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>单据类型</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.billType|orderType}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>工厂名称</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.orgName||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>采购合同号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="purchaseContractNo" class="form-control" maxlength="100"
                                ng-model="detailInfo.deliveryReceiptVO.purchaseContractNo">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div dealer-dictionary-selector ng-model="detailInfo.deliveryReceiptVO.country"
                                sel-key="country" sel-code="detailInfo.deliveryReceiptVO.countryName"
                                data-model="orderObj.countryName">
                                <input type="text" name="country" class="form-control light-bg"
                                    ng-model="detailInfo.deliveryReceiptVO.country" translate-attr-placeholder="请选择"
                                    readonly yb-focus>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>交货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="deliveryTime" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.deliveryTime"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker1 = !showDatepicker1"
                                is-open="showDatepicker1" close-text="关闭" readonly>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>运输方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div select-send-type first-level-model="detailInfo.deliveryReceiptVO.shippingMethodId"
                                second-level-model="detailInfo.deliveryReceiptVO.shippingSecondMethodId"
                                parent-type-name="detailInfo.deliveryReceiptVO.shippingMethod"
                                child-type-name="detailInfo.deliveryReceiptVO.shippingSecondMethod">
                            </div>
                            <div class="msg-block"
                                ng-show="orderForm.sendType.$dirty || (orderForm.sendType.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.sendType.$error.required && !orderForm.sendType.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>结算方式</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.settlementDesc||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>收货人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverName" class="form-control" maxlength="20"
                                ng-model="detailInfo.deliveryReceiptVO.receiverName">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>联系方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverTel" class="form-control" maxlength="20"
                                ng-model="detailInfo.deliveryReceiptVO.receiverTel">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>传真</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverFax" class="form-control" maxlength="20"
                                ng-model="detailInfo.deliveryReceiptVO.receiverFax">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>收货地址</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverAddress" class="form-control" maxlength="200"
                                ng-model="detailInfo.deliveryReceiptVO.receiverAddress">
                        </div>

                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>地址编码</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.deliveryReceiptVO.addressCode||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <lable class="col-xs-4 control-label max-w-100"><span translate>收货站点</span>：</lable>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverSite" class="form-control" maxlength="30"
                                ng-model="detailInfo.deliveryReceiptVO.receiverSite">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>发货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="deliveryDate" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.deliveryDate"
                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                is-open="showDatepicker" close-text="关闭" readonly required>
                            <div class="msg-block"
                                ng-show="orderForm.deliveryDate.$dirty || (orderForm.deliveryDate.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.deliveryDate.$error.required && !orderForm.deliveryDate.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>费用</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="carrierAmount" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.carrierAmount" yb-number-input
                                disable-decimal="false" decimal-places="2" max="99999999.99">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>承运商</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="carrierOrgName" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.carrierOrgName" ng-click="selectLogisticsCom()"
                                required yb-focus readonly translate translate-attr-placeholder="请选择">
                            <div class="msg-block"
                                ng-if="orderForm.carrierOrgName.$dirty || (orderForm.carrierOrgName.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.carrierOrgName.$error.required && !orderForm.carrierOrgName.focused">
                                    <div class="msg-triangle"></div>
                                    <span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>承运人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="carrierUserName" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.carrierUserName">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>运输车辆</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="carrierCar" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.carrierCar">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>物流商编号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.expressName" ng-click="selectExpressCode()"
                                readonly translate translate-attr-placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>物流单号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="receiverAddress" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.freightNo">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>选择路线</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="chooseRoute" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.deliveryReceiptVO.selectedLine" ng-click="selectLineCom()" readonly
                                translate translate-attr-placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>承诺时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.commitmentTime||'-'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control" maxlength="200"
                                ng-model="detailInfo.deliveryReceiptVO.remark">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 control-label max-w-100"><span translate>验箱人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" maxlength="200" ng-model="detailInfo.deliveryReceiptVO.checkerName">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>重量</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{totalWeight || "-"}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>参考运费</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left">
                            {{detailInfo.deliveryReceiptVO.freight || "-"}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>总重量（kg）</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="grossWeight" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.grossWeight" yb-number-input
                                disable-decimal="false" decimal-places="2" max="999999">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>总体积（m³）</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="grossVolume" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.grossVolume" yb-number-input
                                disable-decimal="false" decimal-places="2" max="9999">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>总包裹数</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="expressItemQty" class="form-control"
                                ng-model="detailInfo.deliveryReceiptVO.expressItemQty" yb-number-input
                                disable-decimal="true" max="999999">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isXF">
                        <label class="col-xs-4 control-label max-w-100"><span translate>运输人电话</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" maxlength="200" ng-model="detailInfo.deliveryReceiptVO.carrierTel">
                        </div>
                    </div>
                    <div ng-if="isSCH">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>省-市</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left">
                                {{detailInfo.deliveryReceiptVO.province || ""}} - {{detailInfo.deliveryReceiptVO.city || ""}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>包装费用</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" ng-model="detailInfo.deliveryReceiptVO.packingPrice" class="form-control"
                                    yb-number-input disable-decimal="false" decimal-places="2" max="9999999.99">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>保价费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" ng-model="detailInfo.deliveryReceiptVO.insurancePrice" class="form-control"
                                    yb-number-input disable-decimal="false" decimal-places="2" max="9999999.99">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>改址/送货/进仓费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" ng-model="detailInfo.deliveryReceiptVO.changePrice" class="form-control"
                                    yb-number-input disable-decimal="false" decimal-places="2" max="9999999.99">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>总费用</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left">
                                {{detailInfo.deliveryReceiptVO.wlTotalPrice || "-"}}
                            </label>
                        </div>
                    </div>
                </form>
                <div class="pos-a-full" style="right: 40%;padding-left: 10px;" ng-style="{'top': isSCH ? '430px' : '380px'}">
                    <div class="row wrapper-y-sm" ng-if="detailInfo.deliveryReceiptVO.outStatus!=2 || isDealerJck">
                        <button class="btn btn-operate m-r-sm" ng-click="selectBill()" translate>选择业务单据</button>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div >
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th translate width="60" style="line-height: 10px;">操作</th>
                                        <th translate width="100" style="line-height: 10px;">业务单号</th>
                                        <th translate width="120" style="line-height: 10px;">销售单号</th>
                                        <th translate width="100" style="line-height: 10px;">采购单号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGFT'" translate width="120" style="line-height: 10px;">采购合同号</th>
                                        <th translate width="100" style="line-height: 10px;">备注</th>
                                        <th translate width="120" style="line-height: 10px;">出库状态</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120" style="line-height: 10px;">
                                            车型</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120" style="line-height: 10px;">
                                            车号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120" style="line-height: 10px;">
                                            CRM单据号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120" style="line-height: 10px;">
                                            服务人员</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120" style="line-height: 10px;">
                                            服务网点</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" >
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.billList track by $index"
                                        ng-class="{'row-selected': $index === markInfoForAdd.cueRow}"
                                        ng-click="selectRowForAdd(item,$index)">
                                        <td width="60">
                                            <button type="button" class="btn btn-operate"
                                                ng-disabled="detailInfo.deliveryReceiptVO.outStatus==2||(detailInfo.deliveryReceiptVO.outStatus==1&&item.status!=0&&item.status!=null)"
                                                ng-click="delBill($index, $event)" translate>删除</button>
                                        </td>
                                        <td class="spill-dots" title="{{item.deliveryNoteNo}}" width="100">
                                            {{item.deliveryNoteNo}}</td>
                                        <td class="spill-dots" title="{{item.saleBillNo}}" width="120">
                                            {{item.saleBillNo}}</td>
                                        <td class="spill-dots" title="{{item.purchaseBillNo}}" width="100">
                                            {{item.purchaseBillNo}}</td>
                                        <td class="spill-dots" title="{{item.purchaseContractNo}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGFT'" width="120">
                                            {{item.purchaseContractNo}}</td>
                                        <td class="spill-dots" title="{{item.remark}}" width="100">{{item.remark}}</td>
                                        <td class="spill-dots" title="{{item.status|OutboundStatus}}" width="120">
                                            {{item.status|OutboundStatus}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.prodType}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.prodType}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.machineNumber}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.machineNumber}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.crmOrder}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.crmOrder}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceName}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="100">
                                            {{item.threeGuaServiceVO.serviceName}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceSite}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.serviceSite}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 60%;padding-left: 10px;" ng-style="{'top': isSCH ? '430px' : '380px'}">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form" translate>
                            零件信息
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="600">
                                <thead>
                                    <tr>
                                        <th width="190" translate>零件号</th>
                                        <th width="200" translate>零件中文名</th>
                                        <th width="100" translate>零件分类</th>
                                        <th width="100" translate>重量</th>
                                        <th width="100" translate>数量</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="600">
                                <tbody>
                                    <tr ng-repeat="item in materialsForAdd track by $index">
                                        <td width="190" class="spill-dots" title="{{ item.materialNoC }}">{{ item.materialNoC }}</td>
                                        <td width="200" class="spill-dots" title="{{ item.materialDesC }}">{{ item.materialDesC }}</td>
                                        <td width="100" class="spill-dots" title="{{ item.materialsType }}">{{ item.materialsType }}</td>
                                        <td width="100" class="spill-dots" title="{{ item.weight }}">{{ item.weight }}</td>
                                        <td width="100" class="spill-dots" title="{{ item.qtyC }}">{{ item.qtyC }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="materialsForAdd.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="stepList.curStep = 0"
                        ng-if="!detailInfo.deliveryReceiptVO.billNo" translate>上一步
                    </button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-disabled="clickValue"
                        ng-click="saveData(orderForm.$valid)" translate>保存</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[2]" ng-if="headFlagTwo == 'detail'" ng-click="changeTab(2)">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运交接单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.billNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.billNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购合同号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.purchaseContractNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.purchaseContractNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.dealerOrgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.dealerOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.createName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>交货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.country || '-'}}">
                        {{detailInfo.deliveryReceiptVO.country || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.billType|orderType}}">
                        {{detailInfo.deliveryReceiptVO.billType|orderType}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>工厂名称</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.orgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.orgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.shippingMethod || '-'}}">
                        {{detailInfo.deliveryReceiptVO.shippingMethod || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>结算方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.settlementDesc || '-'}}">
                        {{detailInfo.deliveryReceiptVO.settlementDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverTel || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverFax || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverFax || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverAddress || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverAddress || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>地址编码</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.addressCode || '-'}}">
                        {{detailInfo.deliveryReceiptVO.addressCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <lable class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货站点</span>：</lable>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.receiverSite || '-'}}">
                        {{detailInfo.deliveryReceiptVO.receiverSite || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发货日期</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>费用</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierAmount || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierAmount || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运商</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierOrgName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierUserName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierUserName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>重量</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.totalWeight || '-'}}">
                        {{detailInfo.deliveryReceiptVO.totalWeight || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>参考运费</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.freight || '-'}}">
                        {{detailInfo.deliveryReceiptVO.freight || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输车辆</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.carrierCar || '-'}}">
                        {{detailInfo.deliveryReceiptVO.carrierCar || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>物流单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.freightNo || '-'}}">
                        {{detailInfo.deliveryReceiptVO.freightNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.remark || '-'}}">
                        {{detailInfo.deliveryReceiptVO.remark || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>验箱人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.checkerName || '-'}}">
                        {{detailInfo.deliveryReceiptVO.checkerName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总重量（kg）</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.grossWeight || '-'}}">
                        {{detailInfo.deliveryReceiptVO.grossWeight || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总体积（m³）</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.grossVolume || '-'}}">
                        {{detailInfo.deliveryReceiptVO.grossVolume || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总包裹数</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.deliveryReceiptVO.expressItemQty || '-'}}">
                        {{detailInfo.deliveryReceiptVO.expressItemQty || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>签收附件</span>：</label>
                    <a class="btn-operate m-r-xs" ng-click="downloadAttachCarrierFunc(detailInfo.deliveryReceiptVO.id)" translate>
                        {{detailInfo.deliveryReceiptVO.signAttachName || "-"}}
                    </a>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ&&!!detailInfo.deliveryReceiptVO.signAttachName">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>签收附件时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                         title="{{(detailInfo.deliveryReceiptVO.uploadSignBillTime|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(detailInfo.deliveryReceiptVO.uploadSignBillTime|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输人电话</span>：</label>
                    <a class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.deliveryReceiptVO.carrierTel || "-"}}
                    </a>
                </div>
                <div ng-if="isSCH">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>省-市</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.deliveryReceiptVO.province || ""}} - {{detailInfo.deliveryReceiptVO.city || ""}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>包装费用</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.deliveryReceiptVO.packingPrice || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>保价费</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.deliveryReceiptVO.insurancePrice || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots" title="改址/送货/进仓费"><span translate>改址/送货/进仓费</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.deliveryReceiptVO.changePrice || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总费用</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.deliveryReceiptVO.wlTotalPrice || "-"}}
                        </div>
                    </div>
                </div>
            </div>
            <div tabset type="sub-tab">
                <div tab heading="关联单据" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>业务单号</th>
                                            <th translate>销售单号</th>
                                            <th translate>采购单号</th>
                                            <th ng-if="curOrg.companyType =='2'" translate>源运单号</th>
                                            <th translate>备注</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>车型</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>车号</th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>CRM单据号
                                            </th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>服务人员
                                            </th>
                                            <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate>服务网点
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.billList track by $index">
                                            <td class="spill-dots" title="{{item.deliveryNoteNo}}">{{item.deliveryNoteNo}}</td>
                                            <td class="spill-dots" title="{{item.saleBillNo}}">{{item.saleBillNo}}</td>
                                            <td class="spill-dots" title="{{item.purchaseBillNo}}">{{item.purchaseBillNo}}</td>
                                            <td class="spill-dots" title="{{item.sourceDeliveryNo}}"
                                                ng-if="curOrg.companyType =='2'">{{item.sourceDeliveryNo}}</td>
                                            <td class="spill-dots" title="{{item.remark}}">{{item.remark}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.prodType}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.prodType}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.machineNumber}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.machineNumber}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.crmOrder}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.crmOrder}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceName}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.serviceName}}</td>
                                            <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceSite}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.threeGuaServiceVO.serviceSite}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="零件信息" active="subTabFlag[1]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>装箱清单号</th>
                                            <th translate>业务单号</th>
                                            <th translate>条码</th>
                                            <th translate>零件编号</th>
                                            <th translate>零件中文名</th>
                                            <th translate>零件分类</th>
                                            <th translate>钢印号</th>
                                            <th translate>数量</th>
                                            <th translate>单价</th>
                                            <th translate>小计</th>
                                            <th translate>装箱时间</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.materialsList track by $index">
                                            <td class="spill-dots" title="{{item.boxupNo}}">{{item.boxupNo}}</td>
                                            <td class="spill-dots" title="{{item.deliveryNoteNo}}">{{item.deliveryNoteNo}}</td>
                                            <td class="spill-dots" title="{{item.barcode}}">{{item.barcode}}</td>
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}</td>
                                            <td class="spill-dots" title="{{item.materialsDes}}">{{item.materialsDes}}</td>
                                            <td class="spill-dots" title="{{item.materialsType}}">{{item.materialsType}}</td>
                                            <td class="spill-dots" title="{{item.stealNo}}">{{item.stealNo}}</td>
                                            <td class="spill-dots" title="{{item.qty}}">{{item.qty}}</td>
                                            <td class="spill-dots" title="{{item.unitPriceAfterAdjust}}">{{item.unitPriceAfterAdjust}}</td>
                                            <td class="spill-dots" title="{{item.totalPriceAfterAdjust}}">{{item.totalPriceAfterAdjust}}</td>
                                            <td class="spill-dots" title="{{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">{{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="装箱清单" active="subTabFlag[2]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate>装箱单号</th>
                                            <th translate>自定义编号</th>
                                            <th translate>箱形描述</th>
                                            <th translate>创建人</th>
                                            <th translate>创建时间</th>
                                            <th translate>长/宽/高(mm)</th>
                                            <th translate>毛重/净重(kg)</th>
                                            <th translate>发货金额</th>
                                            <th translate>提货状态</th>
                                            <th translate>提货时间</th>
                                            <th translate>操作</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.mainVOList track by $index">
                                            <td class="spill-dots" title="{{item.boxupNo}}">{{item.boxupNo}}</td>
                                            <td class="spill-dots" title="{{item.boxCode}}">{{item.boxCode}}</td>
                                            <td class="spill-dots" title="{{item.packDesc}}">{{item.packDesc}}</td>
                                            <td class="spill-dots" title="{{item.createName}}">{{item.createName}}</td>
                                            <td class="spill-dots"
                                                title="{{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                                {{item.createTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>
                                            <td class="spill-dots"
                                                title="{{item.lenghtNum}}/{{item.withNum}}/{{item.hightNum}}">
                                                {{item.lenghtNum}}/{{item.withNum}}/{{item.hightNum}}</td>
                                            <td class="spill-dots" title="{{item.roughWeight}}/{{item.weight}}">
                                                {{item.roughWeight}}/{{item.weight}}</td>

                                            <td class="spill-dots" title="{{item.deliveryPrice}}">{{item.deliveryPrice}}</td>
                                            <td class="spill-dots" title="{{item.takeDeliveryStatusShow}}">{{item.takeDeliveryStatusShow}}</td>
                                            <td class="spill-dots" title="{{item.takeDeliveryTimeShow}}">{{item.takeDeliveryTimeShow}}</td>
                                            <td class="spill-dots" title="{{item.boxupId}}">
                                                <button class="btn btn-operate" yb-download
                                                    download-url="exportParam.exportUrl" download-param="item"
                                                    translate>导出</button>
                                                <button class="btn btn-operate" yb-download
                                                    download-url="exportParam.exportUrl4Jck" download-param="item" is-ajax="true"
                                                    translate>进出口导出</button>
                                                <button class="btn btn-operate"
                                                    ng-disabled="detailInfo.deliveryReceiptVO.deliveryStatus!='0'"
                                                    ng-click="editBox(item)" translate>编辑</button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="物流信息" active="subTabFlag[3]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div class="main-wrap p-l-xl clearfix">
                            <div class="row wrapper-y-xs">
                                <div class="col-xs-12 operate-bar font-0">
                                    <button ng-if="!(isWJ && (detailInfo.deliveryReceiptVO.carrierOrgCode === '91320115MA20J0TU4K'||detailInfo.deliveryReceiptVO.carrierOrgCode === '91320300690776470P'))" class="btn btn-operate" ng-click="syncData()" translate>同步</button>
                                </div>
                            </div>
                            <div yb-time-line ng-model="detailInfo.logisticsVOList" can-enter="false"></div>
                        </div>
                    </div>
                </div>
                <div tab heading="关联单据详情" ng-click="initDetail()" active="subTabFlag[4]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div class="row wrapper-y-xs">
                            <div class="col-xs-12 operate-bar font-0">
                                <button class="btn btn-operate m-r-sm" yb-download
                                    download-url="exportBillDetailParam.url"
                                    download-param="exportBillDetailParam.param" translate>导出</button>
                            </div>
                        </div>
                        <div yb-table-fixed class="table-fixed-wrap" style="top:40px;">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th translate width="60"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">操作</th>

                                            <th translate>零件号</th>
                                            <th translate>零件中文名</th>
                                            <th translate>重量</th>
                                            <th translate>适用机型</th>
                                            <th translate width="70"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC' || detailInfo.deliveryReceiptVO.billType=='XGFT'">数量</th>
                                            <th translate width="70"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">库存</th>
                                            <th translate width="80"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">是否缺货</th>
                                            <th translate width="80"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">是否返厂</th>

                                            <th translate>单据号</th>

                                            <th translate ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">预计到货时间
                                            </th>
                                            <th translate ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">备注</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in billDetailDataList track by $index">
                                            <td width="60" ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <button type="button" class="btn btn-operate"
                                                    ng-disabled="!btnPermission.handoverSaveDetailData"
                                                    ng-click="saveDetailData(item)">保存</button>
                                            </td>
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}
                                            </td>
                                            <td ng-class="{'spill-dots': !!isPC}" title="{{item.materialsDes}}">
                                                {{item.materialsDes}}</td>
                                            <td ng-class="spill-dots" title="{{item.weight}}">{{item.weight}}</td>
                                            <td ng-class="spill-dots" title="{{item.machineModel}}">
                                                {{item.machineModel}}</td>
                                            <td class="spill-dots" width="70" title="{{item.deliveryQty}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC' || detailInfo.deliveryReceiptVO.billType=='XGFT'">
                                                {{item.deliveryQty}}</td>
                                            <td class="spill-dots" width="70" title="{{item.enableNum}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">{{item.enableNum}}
                                            </td>
                                            <td class="spill-dots" width="80" title="{{item.outOfStockShow}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.outOfStockShow}}</td>
                                            <td class="spill-dots" width="80" title="{{item.backFactory}}"
                                                ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                {{item.backFactory}}</td>

                                            <td class="spill-dots" title="{{item.billNo}}">{{item.billNo}}</td>

                                            <td ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <input type="text" class="form-control date-picker"
                                                    ng-model="item.arrivalTime" datepicker-popup="{{'yyyy-MM-dd'}}"
                                                    ng-click="showDateStart = !showDateStart" is-open="showDateStart"
                                                    close-text="关闭" modal-size="small">
                                            </td>
                                            <td ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'">
                                                <textarea ng-model="item.remark" maxlength="50"
                                                    class="form-control over-flow-h"></textarea>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="bottom-area page-bar wrapper-y-sm clearfix" style="z-index:1;left:auto;">
                        <div yb-page-info ng-model="detailPageInfo" yb-refresh="searchDetail()"></div>
                    </div>
                </div>
                <div tab heading="签收信息" active="subTabFlag[5]">
                    <div class="main-area d-b-60" ng-style="{top:isSCH?(isEN?'380px':'340px'):(isEN?'340px':'310px')}">
                        <div class="form-group col-xs-3 m-b-sm" style="width: 100%;">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>签收信息</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.deliveryReceiptVO.receiveMessage || '-'}}">
                                {{detailInfo.deliveryReceiptVO.receiveMessage || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm" style="width: 100%;">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否异常</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.deliveryReceiptVO.isAbnormal || '-'}}">
                                {{detailInfo.deliveryReceiptVO.isAbnormal===1?'是':'否'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm" ng-if="!!detailInfo.deliveryReceiptVO.attachName">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>附件</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots  btn-operate cursor-pointer"
                                ng-click="downloadAttach(detailInfo.deliveryReceiptVO.id)">
                                {{detailInfo.deliveryReceiptVO.attachName || "-"}}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center border-t clearfix">
                <button ng-if="!!btnPermission.handoverBillAddPackage" type="button" class="btn btn-default" ng-click="changeTab(5)" translate>新增装箱</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="新增入库单" active="activeFlag[3]" ng-if="activeFlag[3]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领入仓库</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear name="warehouseCode" ng-model="abnormalObj.headerInfo.warehouseCode"
                            select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="领入仓库"
                            form-require="true"></div>

                        <div class="msg-block" ng-if="!abnormalObj.headerInfo.warehouseCode && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span translate>请选择领入仓库</span>
                            </div>
                        </div>
                    </div>
                </div>
                <!--<div class="form-group col-xs-3 m-b-sm">-->
                <!--<label class="col-xs-4 control-label max-w-100"><i>*</i>领入库区：</label>-->
                <!--<div class="col-xs-8 wrapper-none">-->
                <!--<div yb-form-clear ng-model="abnormalObj.headerInfo.inArea" select-obj="selectArea()"-->
                <!--clear-form="clearArea()" tips-name="领入库区" form-require="true"></div>-->

                <!--<div class="msg-block" ng-if="!abnormalObj.headerInfo.inArea && submitted">-->
                <!--<div class="error-msg">-->
                <!--<div class="msg-triangle"></div>-->
                <!--请选择领入库区-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100 spill-dots"><span translate>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="reason" class="form-control light-bg"
                            ng-model="abnormalObj.headerInfo.note" maxlength="200">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="abnormalObj.detailList"
               ></div>
            <div class="main-area d-b-60" style="top:140px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{abnormalInNewTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(abnormalObj.detailList, 'Material')"></div>
                                    </th>
                                    <th width="80" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in abnormalInNewTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="abnormalInNewTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="abnormalObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{abnormalInNewTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in abnormalObj.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, abnormalObj.detailList, 'Material')"></div>
                                    </td>
                                    <td width="80">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in abnormalInNewTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'note'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                maxlength="120">
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="abnormalObj.detailList.length === 0" translate>
                        暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveAbnormalInData(form.$valid)"
                    translate>提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="收货" active="activeFlag[4]" ng-if="activeFlag[4]">
            <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group m-b-sm">
                    <label class="col-xs-2 control-label"><span translate>是否异常</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left clearfix">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            ng-model="detailInfo.deliveryReceiptVO.isAbnormal" value="1" yb-radio-name="是">
                        <input type="radio" class="m-r-sm pull-left" yb-radio
                            ng-model="detailInfo.deliveryReceiptVO.isAbnormal" value="0" yb-radio-name="否">
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><span translate>备注</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="title" class="form-control light-bg"
                            ng-model="detailInfo.deliveryReceiptVO.remark" required yb-focus maxlength="200">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label"><span translate>添加附件</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div>
                            <ul class="enclosureList">
                                <li ng-repeat="item in detailInfo.basicAttachmentList">
                                    <p class="one-row"><span translate>文件名</span>:</p>
                                    <p class="two-row">{{item.name}}</p>

                                    <div>
                                        <!--<button class="btn btn-link btn-xs">
                                            <i class="glyphicon glyphicon-download-alt"></i>
                                        </button>-->
                                        <button class="btn btn-link btn-xs" ng-click="delEnclosure($index)">
                                            <i class="glyphicon glyphicon-trash"></i>
                                        </button>
                                    </div>
                                </li>
                                <li class="addEnclosure" ng-if="detailInfo.basicAttachmentList.length<1">
                                    <a ngf-select="uploadDoc($file,0)">
                                        <i class="glyphicon glyphicon-plus"></i>
                                        <br>
                                        <span translate>添加附件</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </div>

                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm"
                            ng-click="deliveryConfirm(form.$valid,form)" translate>保存</button>
                        <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                    </div>
                </div>
            </form>

        </div>
        <div tab heading="新增装箱" active="activeFlag[5]" ng-if="headFlagThird == 'addPackge'">
            <div style="max-height: 80vh;overflow-y: auto;">
                <div style="margin-bottom: 20px;">
                    <div class="panel-bar clearfix">
                        <div class="pull-left"><i></i><span translate>业务单据</span></div>
                    </div>
                    <form name="form" class="form-horizontal single-col p-t-xs clearfix" novalidate>
                        <div class="panel-bar clearfix" style="border-bottom: unset;">
                            <div class="input-group pull-left clearfix" style="width:33.33%">
                                <select name="warehouseType" id="warehouseTypeId" class="form-control" ng-model="packageInfo.businessOrder"
                                    ng-options="item.deliveryNoteNo as item.deliveryNoteNo for item in detailInfo.billList">
                                    <option value="" translate>请选择业务单号查询零件条码</option>
                                </select>
                                <span class="input-group-addon cursor-pointer" ng-click="searchBarcode(1)" translate>搜索</span>
                            </div>
                            <div class="pull-left clearfix" style="width:28%;margin-left: 20px;margin-right: 20px;">
                                <input type="text" class="form-control" style="text-align:center" ng-model="packageInfo.notPackageMessageInfo"readonly>
                            </div>
                        </div>
                    </form>
                </div>
                <div style="margin-bottom: 20px;">
                    <div class="panel-bar clearfix">
                        <div class="pull-left"><i></i><span translate>装箱零件信息</span></div>
                    </div>
                    <form name="form" class="form-horizontal single-col p-t-xs clearfix" novalidate style="margin-bottom: 10px;">
                        <div class="input-group pull-left clearfix" style="width:33.33%">
                            <select name="warehouseType" id="warehouseTypeId" class="form-control" ng-model="packageInfo.barcode" ng-change="searchBarcodeForBoxup()"
                                ng-options="item.barCode as (item.barCode+'【'+item.materialName+'('+item.materialNo+')'+'+'+item.amount+'】') for item in packageInfo.listForInOutRecord">
                                <option value="" translate>请选择零件条码查询装箱零件信息</option>
                            </select>
                        </div>
                    </form>
                    <div yb-table-fixed>
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in newTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-if="itemCol.type!=='cost'||costPriceShow">
                                            <div yb-thead-operate ng-model="itemCol" target-width="newTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="packageMaterialList.barcodeList.length > 0">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in packageMaterialList.barcodeList track by $index">
                                        <td ng-repeat="itemCol in newTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                            title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots">
                                                <span>
                                                    {{item[itemCol.dataField]}}
                                                </span>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center"
                            style="border: solid 1px #d6d6d6;width: 650px;padding: 10px;"
                            ng-show="packageMaterialList.barcodeList.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div style="margin-bottom: 20px;">
                    <div class="panel-bar clearfix">
                        <div class="pull-left"><i></i><span translate>装箱信息</span></div>
                    </div>
                    <form name="form" class="form-horizontal single-col p-t-xs clearfix" novalidate>
                        <div class="clearfix p-t">
                            <div class="form-group">
                                <label class="col-xs-2 control-label"  style="width:200px;" ><span translate>自定义编号</span>：</label>
                                <div class="col-xs-5 wrapper-none">
                                    <input type="text" name="packageName" class="form-control"
                                        ng-model="detailInfo.packageName" maxlength="20">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-2 control-label" style="width:200px;"><i>*</i><span translate>规格型号（长*宽*高/mm）</span>：</label>
                                <div class="col-xs-5 wrapper-none">
                                    <input type="text" name="specLong" class="form-control pull-left" style="width:32%"
                                        ng-model="detailInfo.specLong"  yb-number-input disable-decimal="false" required yb-focus
                                        decimal-places="4" max="9999999.9999">
                                    <div class="pull-left" style="width:3%;height:34px;line-height: 34px;">*</div>
                                    <input type="text" name="specWidth" class="form-control pull-left" style="width:31%"
                                        ng-model="detailInfo.specWidth"  yb-number-input disable-decimal="false" required yb-focus
                                        decimal-places="4" max="9999999.9999">
                                    <div class="pull-left" style="width:3%;height:34px;line-height: 34px;">*</div>
                                    <input type="text" name="specHeight" class="form-control pull-left" style="width:31%"
                                        ng-model="detailInfo.specHeight"  yb-number-input disable-decimal="false" required yb-focus
                                        decimal-places="4" max="9999999.9999">
                                </div>
                                <div class="col-xs-2 msg-block pull-left"
                                    ng-show="form.specLong.$dirty || (form.specLong.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="form.specLong.$error.required && !form.specLong.focused">
                                        <i class="yb-icon ico-times-circular"></i><span translate>长度必填项，请填写</span>
                                    </div>
                                </div>
                                <div class="col-xs-2 msg-block pull-left"
                                    ng-show="form.specWidth.$dirty || (form.specWidth.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="form.specWidth.$error.required && !form.specWidth.focused">
                                        <i class="yb-icon ico-times-circular"></i><span translate>宽度必填项，请填写</span>
                                    </div>
                                </div>
                                <div class="col-xs-2 msg-block pull-left"
                                    ng-show="form.specHeight.$dirty || (form.specHeight.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="form.specHeight.$error.required && !form.specHeight.focused">
                                        <i class="yb-icon ico-times-circular"></i><span translate>高度必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-2 control-label"  style="width:200px;" ><span translate>毛重（kg）</span>：</label>
                                <div class="col-xs-5 wrapper-none">
                                    <input type="text" name="grossWeight" class="form-control"
                                        ng-model="detailInfo.grossWeight"  yb-number-input disable-decimal="false"
                                        decimal-places="4" max="99999999999.9999">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-2 control-label"  style="width:200px;" ><span translate>净重（kg）</span>：</label>
                                <div class="col-xs-5 wrapper-none">
                                    <input type="text" name="weight" class="form-control"
                                        ng-model="detailInfo.weight"  yb-number-input disable-decimal="false"
                                        decimal-places="4" max="9999999.9999">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-2 control-label"  style="width:200px;" ><i>*</i><span translate>包装方式</span>：</label>
                                <div class="col-xs-5 wrapper-none">
                                    <select name="packageMethod" class="form-control"
                                        ng-model="detailInfo.packageMethod" required
                                        ng-options="item.code as item.name for item in packageMethodList"
                                        yb-focus>
                                        <option value="" translate>请选择包装方式</option>
                                    </select>
                                </div>
                                <div class="col-xs-4 msg-block"
                                    ng-show="form.packageMethod.$dirty || (form.packageMethod.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="form.packageMethod.$error.required && !form.packageMethod.focused">
                                        <i class="yb-icon ico-times-circular"></i><span translate>必选项，请选择</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="bottom-area btn-bar single-col border-t clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="boxUpAdd(form.$valid)" translate>
                    确认装箱
                </button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="clearfix">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运交接单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.billNo || '-'}}">
                            {{detailInfo.deliveryReceiptVO.billNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购合同号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.purchaseContractNo || '-'}}">
                            {{detailInfo.deliveryReceiptVO.purchaseContractNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.dealerOrgName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.dealerOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.createName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.createName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                            {{(detailInfo.deliveryReceiptVO.createDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>交货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || '-'}}">
                            {{(detailInfo.deliveryReceiptVO.deliveryTime|YbDate:'yyyy-MM-dd') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>国家和地区</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.country || '-'}}">
                            {{detailInfo.deliveryReceiptVO.country || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>单据类型</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.billType|orderType}}">
                            {{detailInfo.deliveryReceiptVO.billType|orderType}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>工厂名称</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.orgName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.orgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.shippingMethod || '-'}}">
                            {{detailInfo.deliveryReceiptVO.shippingMethod || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>结算方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.settlementDesc || '-'}}">
                            {{detailInfo.deliveryReceiptVO.settlementDesc || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.receiverName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.receiverTel || '-'}}">
                            {{detailInfo.deliveryReceiptVO.receiverTel || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.receiverFax || '-'}}">
                            {{detailInfo.deliveryReceiptVO.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.receiverAddress || '-'}}">
                            {{detailInfo.deliveryReceiptVO.receiverAddress || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>地址编码</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.addressCode || '-'}}">
                            {{detailInfo.deliveryReceiptVO.addressCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <lable class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货站点</span>：</lable>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.receiverSite || '-'}}">
                            {{detailInfo.deliveryReceiptVO.receiverSite || '-'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                            {{(detailInfo.deliveryReceiptVO.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>费用</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.carrierAmount || '-'}}">
                            {{detailInfo.deliveryReceiptVO.carrierAmount || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运商</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.carrierOrgName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.carrierOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>承运人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.carrierUserName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.carrierUserName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>重量</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.totalWeight || '-'}}">
                            {{detailInfo.deliveryReceiptVO.totalWeight || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>参考运费</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.freight || '-'}}">
                            {{detailInfo.deliveryReceiptVO.freight || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输车辆</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.carrierCar || '-'}}">
                            {{detailInfo.deliveryReceiptVO.carrierCar || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>物流单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.freightNo || '-'}}">
                            {{detailInfo.deliveryReceiptVO.freightNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.remark || '-'}}">
                            {{detailInfo.deliveryReceiptVO.remark || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isJCHK">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>验箱人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{detailInfo.deliveryReceiptVO.checkerName || '-'}}">
                            {{detailInfo.deliveryReceiptVO.checkerName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="isXF">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>运输人电话</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                             title="{{detailInfo.deliveryReceiptVO.carrierTel || '-'}}">
                            {{detailInfo.deliveryReceiptVO.carrierTel || "-"}}
                        </div>
                    </div>
                </div>
                <div class="pos-a-full" style="right: 60%;padding-left: 10px;top: 230px;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form">
                            单据信息
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="800">
                                <thead>
                                    <tr>
                                        <th translate width="100">业务单号</th>
                                        <th translate width="100">销售单号</th>
                                        <th translate width="100">采购单号</th>
                                        <th translate width="120">备注</th>
                                        <th translate width="120">出库状态</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            车型</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            车号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            CRM单据号</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            服务人员</th>
                                        <th ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" translate width="120">
                                            服务网点</th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="800">
                                <tbody>
                                    <!-- xbt -->
                                    <tr ng-repeat="item in detailInfo.billList track by $index"
                                        ng-class="{'row-selected': $index === markInfoForAdd.cueRow}"
                                        ng-click="selectRowForAdd(item,$index)">
                                        <td class="spill-dots" title="{{item.deliveryNoteNo}}" width="100">
                                            {{item.deliveryNoteNo}}</td>
                                        <td class="spill-dots" title="{{item.saleBillNo}}" width="100">
                                            {{item.saleBillNo}}</td>
                                        <td class="spill-dots" title="{{item.purchaseBillNo}}" width="100">
                                            {{item.purchaseBillNo}}</td>
                                        <td class="spill-dots" title="{{item.remark}}" width="120">{{item.remark}}</td>
                                        <td class="spill-dots" title="{{item.status|OutboundStatus}}" width="120">
                                            {{item.status|OutboundStatus}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.prodType}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.prodType}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.machineNumber}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.machineNumber}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.crmOrder}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.crmOrder}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceName}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.serviceName}}</td>
                                        <td class="spill-dots" title="{{item.threeGuaServiceVO.serviceSite}}"
                                            ng-if="detailInfo.deliveryReceiptVO.billType=='XGSC'" width="120">
                                            {{item.threeGuaServiceVO.serviceSite}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="pos-a-full" style="left: 40%;padding-left: 10px;top: 230px;width: 35vw;">
                    <div class="row wrapper-y-sm" translate>
                        <div class="p-t-form" translate>
                            零件信息
                        </div>
                    </div>

                    <div yb-table-fixed class="table-fixed-wrap" style="top:35px; bottom: 60px; left: 10px;">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="500">
                                <thead>
                                    <tr>
                                        <th width="190" translate>零件号</th>
                                        <th width="200" translate>零件中文名</th>
                                        <th width="100" translate>数量</th>
                                        <!-- <th width="100" translate>适用机型</th> -->
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll">
                            <table class="table-fixed border-none" width="500">
                                <tbody>
                                    <tr ng-repeat="item in materialsForAdd track by $index">
                                        <td width="190" class="spill-dots" title="{{ item.materialNoC }}">{{ item.materialNoC }}</td>
                                        <td width="200" class="spill-dots" title="{{ item.materialDesC }}">{{ item.materialDesC }}</td>
                                        <td width="100" class="spill-dots" title="{{ item.qtyC }}">{{ item.qtyC }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="materialsForAdd.length === 0" translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="main-area d-b-60" style="left: auto; width: 225px;top: 230px">
                    <div class="main-wrap p-b-lg over-flow-h" style="top:35px;">
                        <textarea yb-word-count max-size="500" class="form-control full" ng-model="auditMessage.value" placeholder="审核意见"></textarea>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('1')" translate>通过</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('2')" translate>拒绝</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
        </div>
        <div tab heading="WMS箱单推送" active="activeFlag[7]" ng-if="activeFlag[7]">
            <div class="main-area d-t-35 d-b-60">
                <form name="form" class="main-wrap form-horizontal single-col p-t-md clearfix" novalidate>
                    <div class="form-group">
                        <label class="col-xs-2 control-label"><i>*</i><span translate>发运交接单号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <textarea name="fyjjd" ng-model="fyjjd" class="form-control" ng-blur="handleMultiInput($event)" placeholder="逗号分隔或者换行分隔" rows="30" required></textarea>
                            <div class="msg-block" ng-show="form.fyjjd.$dirty || (form.fyjjd.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="form.fyjjd.$error.required && !form.fyjjd.focused">
                                    <i class="yb-icon ico-times-circular"></i><span translate>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="bottom-area btn-bar single-col border-t clearfix">
                <button type="button" class="btn btn-primary m-r-sm" translate ng-click="handleWmsSyncByDeliveryBill(form.$valid)">发送</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
            </div>
        </div>
    </div>
</div>
